package com.fs.cv.pojo.pojodao;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Record {
    //record_id
    private int id;
    //teacher_id对应的teacher_name 授课教师
    private String teacher;
    //course_id对应的course_name 课程名称
    private String course;
    //class_id对应的class_name 班级
    private String _class;
    //classroom_id对应的classroom_name 教室名称
    private String classroom;
    //record_date  哪天上课
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date date;
    //record_index 这天的第几节
    private int index;

    public Record() {
    }

    public Record(int id, String teacher, String course, String _class, String classroom, Date date, int index) {
        this.id = id;
        this.teacher = teacher;
        this.course = course;
        this._class = _class;
        this.classroom = classroom;
        this.date = date;
        this.index = index;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTeacher() {
        return teacher;
    }

    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public String get_class() {
        return _class;
    }

    public void set_class(String _class) {
        this._class = _class;
    }

    public String getClassroom() {
        return classroom;
    }

    public void setClassroom(String classroom) {
        this.classroom = classroom;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", teacher='" + teacher + '\'' +
                ", course='" + course + '\'' +
                ", _class='" + _class + '\'' +
                ", classroom='" + classroom + '\'' +
                ", date=" + date +
                ", index=" + index +
                '}';
    }
}
